import sys

cpath = ['/usr/include/SDL']
libs  = ['SDL','SDL_mixer','SDL_image']
lpath = ['/usr/lib/']

cflags = ' -Wall -pedantic'
debug = ARGUMENTS.get('debug', 0)

lib_thing = Environment(CPPFLAGS = cflags)

if int(debug):
	lib_thing.Append(CPPFLAGS = ' -g')

files= Split("""
             
				CAccum.cpp
				CAnimation.cpp
				CBrick.cpp
				CCore.cpp
				CException.cpp
				CFrame.cpp
				CFx.cpp
				CImage.cpp
				CLayer.cpp
				CObject.cpp
				CScene.cpp
				CSprite.cpp
				CVector.cpp
				CInputManager.cpp
				CSoundManager.cpp
				CTimerManager.cpp
				CVideoManager.cpp
			""")

lthing = lib_thing.SharedLibrary(target = 'libthing', source = files, LIBPATH = lpath, CPPPATH = cpath, LIBS = libs)
